#include <QApplication>
#include "MainWidget.h"
#include "WidgetInspector.h"

void TestLayout();
int main(int argc, char *argv[]) {
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);

    QApplication app(argc, argv);

    MainWidget w; w.show();
    WidgetInspector inspector(&w); inspector.show();

    //TestLayout();

    return app.exec();
}

#include "FlowLayout.h"
#include <QPushButton>
void TestLayout() {
    FlowLayout *flowLayout = new FlowLayout;

    flowLayout->addWidget(new QPushButton("Short"));
    flowLayout->addWidget(new QPushButton("Longer"));
    flowLayout->addWidget(new QPushButton("Different text"));
    flowLayout->addWidget(new QPushButton("More text"));
    flowLayout->addWidget(new QPushButton("Even longer button text"));

    auto widget = new QWidget;
    widget->setLayout(flowLayout);
    widget->show();
}
